package com.bawei.mall.product.domain;

import com.bawei.common.core.annotation.Excel;
import com.bawei.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiParam;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 商品信息对象 mall_product_info
 *
 * @author DongZeLiang
 * @date 2022-09-19
 */
@Data
public class MallProductInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @ApiParam("ID自增")
    private Long id;

    /** 商品名称 */
    @Excel(name = "商品名称")
    @ApiParam("商品名称")
    private String name;

    /** 商品描述 */
    @Excel(name = "商品描述")
    private String productDesc;

    /** 商品类型 */
    @Excel(name = "商品类型")
    private String type;

    /** 冗余字段 */
    @Excel(name = "冗余字段")
    private String typeIds;

    /** 商品主图 */
    @Excel(name = "商品主图")
    private String img;

    /** 商品轮播图 */
    @Excel(name = "商品轮播图")
    private String carouselImages;

    /** 商品评论数 */
    @Excel(name = "商品评论数")
    private Long commentCount;

    /** 商品收藏人气 */
    @Excel(name = "商品收藏人气")
    private Long collectCount;

    /** 品牌信息 */
    @Excel(name = "品牌信息")
    private Integer brandId;

    /** 商品状态 */
    @Excel(name = "商品状态")
    private String status;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 搜索关键字 */
    @Excel(name = "搜索关键字")
    private String keywords;

    /** 规格信息 */
    @Excel(name = "规格信息")
    private Long ruleId;

    @Excel(name = "商品上下架")
    private String stats;

    private Integer pageNum=1;

    private Integer pageSize=6;

    private BigDecimal productPrice;

    /*秒杀商品*/
    private Integer homeFlash;

    /*人气推荐*/
    private Integer hotProduct;

    /*新鲜好物*/
    private Integer newProduct;

    /**
     * 已售商品数量
     */
    private Integer sale;

    /** 乐观锁 */
    private Long revision;

}
